package main

import (
	"fmt"
	"hcy-api/lib/cmdutil"
	"os"
	"vap_host/plugin/service"
)

var (
	BuildTime string
	Version   = "1.0.0"
)

func main() {
	// 设置控制台输出编码为 UTF-8
	err := cmdutil.SetConsoleOutputCP(65001)
	if err != nil {
		fmt.Println("set Console Output CP error:", err.Error())
		return
	}
	app := service.Do(Version, BuildTime)
	if err := app.Run(os.Args); err != nil {
		fmt.Printf("命令行调用错误：%s ，请查看帮助文档", err.Error())
	}
}
